package com.gmrz.uaf.db.dao;

import com.gmrz.uaf.db.DAOException;
import com.gmrz.uaf.protocol.v1.schema.DeviceDetails;

import java.util.List;


public interface DevicesDao
{
    void insert(DeviceDetails deviceDetails) throws DAOException;
    List<DeviceDetails> forUserNameAndAppID(String userName, String appID) throws DAOException;

    void delete(String userName, String appID, String deviceID, String authType, String transType) throws DAOException;

    void updateOther(String userName,String appID,String authType,String transType) throws DAOException;

    DeviceDetails findOne(String appID,String userName,String deviceID,String authType,String transType) throws DAOException;
    void update(DeviceDetails deviceDetails) throws DAOException;
}